<?php

use Illuminate\Database\Seeder;

class NewsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
       $data = [];
       for ($i=0; $i < 10 ; $i++) { 
        	$tmp = [];
        	$tmp['title']=str_random(10);
        	$tmp['status']=rand(0,1);
        	$tmp['content']=str_random(30);
        	$data[] = $tmp;
        } //
        DB::table('news')->insert($data);
    }
}
